# local packages
from . import login_blue
# external packages
from flask import jsonify, request


@login_blue.route("/getJWT", methods=['POST', 'GET'])
def routerGetJWT():
    if request.method == "POST":
        from .getJWTandVerify import getJWT
        return_data = getJWT()
        return jsonify(return_data)
    return "你使用了GET进入/login/getJWT接口惹,请使用POST"


@login_blue.route("/verifyJWT", methods=['POST', 'GET'])
def routerVerifyJWT():
    if request.method == "POST":
        from .getJWTandVerify import verifyJWT
        return_data = verifyJWT()
        return jsonify(return_data)
    return "你使用了GET进入/login/verifyJWT接口惹，请使用POST"
